import demo1.Test;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2021/10/27
 * Time: 8:35
 * Description:
 */
class Person {
    public int age;

    public Person(int age) {
        this.age = age;
    }
}
public class TestDemo extends Test {

    public void func() {
        Test test = new Test();
        //test.age = 19;
        System.out.println(super.age);
    }

    public static void main(String[] args) {
        TestDemo testDemo = new TestDemo();
        testDemo.func();
        //Test test = new Test();
        //test.age = 19;
        //System.out.println(super.age);
    }

    public static void main1(String[] args) {
        Person person = new Person(10);
    }
}
